package com.jumi.microservice.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @author Dirk
 * @Date 2021-01-06 14:37
 */
@Component
@RefreshScope
public class TaoBaoConfig {

    @Value("${taobao.url:https://eco.taobao.com/router/rest}")
    String url;

    @Value("${taobao.appkey:32331237}")
    String appkey;

    @Value("${taobao.secret:2461ede90b7ba039b0dcdbe703de424e}")
    String secret;

    @Value("${taobao.inviterCode:9MZJK3}")
    String inviterCode;

    @Value("${taobao.pid:111104600496}")
    String pid;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getAppkey() {
        return appkey;
    }

    public void setAppkey(String appkey) {
        this.appkey = appkey;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public String getInviterCode() {
        return inviterCode;
    }

    public void setInviterCode(String inviterCode) {
        this.inviterCode = inviterCode;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }
}
